﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace autofac.test.Extend
{
    [AttributeUsage(AttributeTargets.Method)]
    public class CacheAttribute : Attribute
    {

        /// <summary>  
        /// 表名  
        /// </summary>  
        public CacheMethod MethodType { get; set; }

        #region 构造方法，可选的  

        public CacheAttribute() { }
        public CacheAttribute(CacheMethod method)
        {
            this.MethodType = method;
        }

        #endregion

    }
}
